package com.naiterui.ehp.bs.esign.api.scca.config;/**
 * @author guoyongxiang
 * @date 2021/2/23 17:02
 * @since 1.0.0
 */

import com.naiterui.ehp.bp.constants.EsignServiceProviderEnum;
import com.naiterui.ehp.bs.esign.api.ISignService;
import com.naiterui.ehp.bs.esign.api.scca.service.impl.SignServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;

/**
 * 四川CA动态配置类
 *
 * @author guoyongxiang
 * @version 1.0.0
 * @date 2021/2/23 17:02
 **/
@Slf4j
public class SccaAutoConfiguration {

    @Bean
    public ISignService signService() {
        log.info("加载签名厂商 {}", EsignServiceProviderEnum.SCCA.getProviderName());
        return new SignServiceImpl();
    }
}
